﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Resources/TPLOAMPage.Master" AutoEventWireup="true"
    CodeBehind="studentsubmitloa.aspx.cs" Inherits="TPLOAWebClient.studentsubmitloa" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="navbarPHolder" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Button ID="studentprofileBtn" runat="server" Text="Student Profile" OnClick="studentprofileBtn_Click"
        CssClass="navbtnCSS" CausesValidation="False" />
    <asp:Button ID="viewloaBtn" runat="server" Text="View LOA" OnClick="viewloaBtn_Click"
        CssClass="navbtnCSS" CausesValidation="False" />
    <asp:Button ID="submitloaBtn" runat="server" Text="Submit LOA" OnClick="submitloaBtn_Click"
        CssClass="navbtnCSS" CausesValidation="False" />
    <asp:Button ID="faqBtn" runat="server" Text="FAQ" OnClick="faqBtn_Click" 
        CssClass="navbtnCSS" CausesValidation="False" />
    <asp:Button ID="otherservicesBtn" runat="server" Text="Other Services" OnClick="otherservicesBtn_Click"
        CssClass="navbtnCSS" CausesValidation="False" />
    <asp:Button ID="logoutBtn" runat="server" Text="Logout" OnClick="logoutBtn_Click"
        CssClass="navbtnCSS" CausesValidation="False" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="sectionTitlePHolder" runat="server">
    Submit LOA
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="mainContentPHolder" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            I wish to apply for leave of absence from classes as follows:<table>
                <tr>
                    <td>
                        <strong>From</strong>*
                    </td>
                    <td>
                        <asp:DropDownList ID="monthfromDdl" runat="server" AutoPostBack="True" 
                            OnSelectedIndexChanged="monthfromDdl_SelectedIndexChanged">
                            <asp:ListItem>Month</asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="dayfromDdl" runat="server" Enabled="False">
                            <asp:ListItem>Day</asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="yearfromDdl" runat="server" Enabled="False">
                            <asp:ListItem>Year</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;(Date)
                        <asp:DropDownList ID="timefromDdl" runat="server">
                            <asp:ListItem>Time</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;(Time)</td>
                </tr>
                <tr>
                    <td>
                        <strong>To</strong>*
                    </td>
                    <td>
                        <asp:DropDownList ID="monthtoDdl" runat="server" AutoPostBack="True" 
                            OnSelectedIndexChanged="monthtoDdl_SelectedIndexChanged">
                            <asp:ListItem>Month</asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="daytoDdl" runat="server" Enabled="False">
                            <asp:ListItem>Day</asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="yeartoDdl" runat="server" Enabled="False">
                            <asp:ListItem>Year</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;(Date)
                        <asp:DropDownList ID="timetoDdl" runat="server">
                            <asp:ListItem>Time</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;(Time)&nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <strong>Reason(s)</strong>*
                    </td>
                    <td>
                        <asp:TextBox ID="reasonTbx" runat="server" Rows="8" Style="font-family:Segoe UI, Arial, Helvetica" 
                            TextMode="MultiLine" Width="200px" MaxLength="100"></asp:TextBox>
                        <ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" 
                            runat="server" TargetControlID="reasonTbx" WatermarkCssClass="watermarked" 
                            WatermarkText="Type the reason here." />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="reasonTbx"
                            ErrorMessage="Please state the reason" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Graded Assignment(s)</strong>*
                    </td>
                    <td>
                        <asp:RadioButtonList ID="gradedassignmentRbl" runat="server" 
                            AutoPostBack="True" 
                            OnSelectedIndexChanged="gradedassignmentRbl_SelectedIndexChanged" 
                            RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True">Yes</asp:ListItem>
                            <asp:ListItem>No</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="Panel1" runat="server">
                            <strong>Graded Assignment Details</strong><br /> *Please include Subject Name 
                            and Lecturer</asp:Panel>
                    </td>
                    <td>
                        <asp:TextBox ID="gradedassignmentTbx" runat="server" Style="font-family: Segoe UI, Arial, Helvetica" 
                            TextMode="MultiLine" Width="200px" MaxLength="500"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="submitBtn" runat="server" OnClick="submitBtn_Click" 
                            Text="Submit" CssClass="btnCSS" />
                            <ajaxToolkit:ConfirmButtonExtender ID="cbe" runat="server" 
                            ConfirmText="Are you confirm?" OnClientCancel="CancelClick" 
                            TargetControlID="submitBtn" />
                        &nbsp;<br /> <asp:Label ID="resultLbl" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
